import { defineStore } from 'pinia'

const useCount2Store = defineStore('count2', () => {
  const num = ref(6)
  const address = ref('杭州')
  const work = ref('IT')

  const increment = (val: number) => {
    num.value += val
  }

  const bigNum = computed(() => {
    return num.value * 10
  })

  return {
    num,
    address,
    work,
    bigNum,
    increment,
  }
})

export default useCount2Store
